package fun.codedesign.java;

import fun.codedesign.kotlin.mixin.EventBus;
import fun.codedesign.kotlin.mixin.EventBusKt;

public class EventBusExecutor {
    private String name;

    public EventBusExecutor(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static void main(String[] args) {
        EventBus.Builder builder = new EventBus.Builder();
        EventBus eventBus = builder.build();
        eventBus = new EventBus();
        // Java调用Kotlin追加函数不能直接使用，需要调用需要使用kt
//        eventBus.append()
        EventBusKt.append(eventBus, "append");
        EventBus.hello("click event");
    }
}

